import scrapy
import logging
from scrapy.pipelines.images import FilesPipeline
from scrapy.exceptions import DropItem


class FilesPipeline(FilesPipeline):

    def file_path(self, request, response=None, info=None, *, item=None):
        return item['page_file_save_path']
